//
//  PBLifeServeCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/1/6.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBLifeServeCell.h"
#import "PBServeListController.h"

@interface PBLifeServeCell ()
@property (strong, nonatomic) IBOutlet UIView *firstView;
@property (strong, nonatomic) IBOutlet UIView *secView;
@property (strong, nonatomic) IBOutlet UIView *threeView;


@end

@implementation PBLifeServeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UITapGestureRecognizer *firstTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(firsttapMethod)];
    [self.firstView addGestureRecognizer:firstTap];
    UITapGestureRecognizer *secTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(secTapMethod)];
    [self.secView addGestureRecognizer:secTap];
    UITapGestureRecognizer *threeTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(threeTapMethod)];
    [self.threeView addGestureRecognizer:threeTap];
    
}

- (void)firsttapMethod {
    PBServeListController *vc = [[PBServeListController alloc] init];
    vc.type = 1;
    [self.jumpVC.navigationController pushViewController:vc animated:YES];
}
- (void)secTapMethod {
    PBServeListController *vc = [[PBServeListController alloc] init];
    vc.type = 2;
    [self.jumpVC.navigationController pushViewController:vc animated:YES];
}
- (void)threeTapMethod {
    PBServeListController *vc = [[PBServeListController alloc] init];
    vc.type = 3;
    [self.jumpVC.navigationController pushViewController:vc animated:YES];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
